<h1>订单管理 - <span id="secondHeading"><%='补齐订单' if !@type.eql? 'RE'%><%='处理退货' if @type.eql? 'RE'%></span></h1>
<%=@salePaperId%>号定单的定单条目
<% if @flash[:notice] -%>
<div id="notice"><%= @flash[:notice] %></div>
<% end -%>
<TABLE border="0" id="LIST_TB">
	<TR id="LIST_TB_TITLE">
      <td nowrap>品名规格</td>
      <td nowrap>导针规格</td>
      <td nowrap>销售价格</td>
      <td>销售数量</td>
      <td>相关操作</td>
    </tr>
    <%@salePaperItems.each do |item|%>
    <TR id="LIST_TB_CONTENT1">
      <td><%=item.product.serial%></td>
      <td><%=item.product.name%></td>
      <td><%=item.price%></td>
      <td><%=item.current_count%></td>
      <%if @type.eql? 'RE'%>
      <td><a href="/sale/add_return_paper?sale_paper_item_id=<%=item.id%>"><img src="/images/edit.gif" alt="填写退货单"></a></td>
      <%else%>
      <td><a href="/sale/full_sale_paper?paperid=<%=item.sale_paper_id%>&id=<%=item.id%>"><img src="/images/edit.gif" alt="补齐订单"></a></td>
      <%end%>
   </tr>
    <%end%>
</table>
<table>
        <tr>
                <td>
                        <input type="button" value="打印当前页" class="sub" onclick="openPrintWindow('LIST_TB')"/>
                        <input type="button" value="导出当前数据" class="sub" onclick="CellAreaExcel('LIST_TB')"/>
                </td>
        </tr>
</table>
